import { Component, OnInit } from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { Router, ActivatedRoute } from '@angular/router';
import { HttpServcie } from './../../../service/http.service';
import { Config } from '../../../service/config';
import { el } from "@angular/platform-browser/testing/src/browser_util";
import { NzModalService, NzModalSubject } from 'ng-zorro-antd';

@Component({
  selector: 'maintenance-list',
  templateUrl: './maintenance-list.html',
  styleUrls: ['./maintenance-list.scss']
})
/**
 * 维保列表
 */
export class MaintenanceListPage implements OnInit {
   data: any;
   list: any = [];//返回的数据
   types : any = []; //电梯类型
  tabs = [];
   inValue={};
   elevatorTypeId = "";
   elevatorId="";
  nzTabPosition = 'top';
  selectedIndex = 0;


  constructor(
    private httpServcie: HttpServcie,
    private router: Router,
    private _notification: NzNotificationService,
    private nsub: NzModalSubject,
    private modalService: NzModalService,
    private activatedRoute: ActivatedRoute
  ) {
    this.activatedRoute.params.subscribe(data => {
      //深度 clone 一下，否则不能修改
      this.inValue = Object.assign({}, data);
      this.elevatorTypeId = this.inValue['elevatorTypeId'];
      this.elevatorId = this.inValue['id'];
    });
    
  }

  ngOnInit() {
    this.query();

  }

  toBack(){
    window.history.back();
  }

  query(){

  }
}
